package com.test.shiro.service.impl;

import com.test.shiro.domain.RolePowerRepository;
import com.test.shiro.entity.RolePower;
import com.test.shiro.service.RolePowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RolePowerServiceImpl implements RolePowerService {
    @Autowired
    private RolePowerRepository rolePowerRepository;
    @Override
    public List<RolePower> findByRid(Integer rid) {
        return rolePowerRepository.findByRid(rid);
    }
}
